{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "882c28fb2faa472eb147671aa9fa539f",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(Output(),))"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfkAAADUCAYAAACf81q4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8rg+JYAAAACXBIWXMAAAsTAAALEwEAmpwYAAATcklEQVR4nO3df5DcdX3H8eebDZFaTkATRkqC0Jo9DRAKSRHGaTkHlEDbxBlRQ4u6iqZisVapLVYHFdtxlKodR6wEtVsYBaMzOnGME6fKyegYCicYkmDWEFQCVAQRGig/srz7x27scubuvrm7713y3edjZif7/e7n+933vXNzr/t+93ufb2QmkiSpeg6a7QIkSVI5DHlJkirKkJckqaIMeUmSKsqQlySpogx5SZIqqrSQj4jPR8T9EbF5jNcjIj4ZEdsjYlNEnFJWLZIk9aMyj+SbwPJxXj8HWNR9rAb+rcRaJEnqO6WFfGbeCPxqnCErgWuyYyNweEQcVVY9kiT1m9n8TP5o4O6e5Z3ddZIkaRrMme0CioiI1XRO6XP11VcvXbJkySxXVG1PP/00Bx3kNZlls8/ls8fls8flq9VqDyxdunT+ZLadzZC/B1jYs7ygu+63ZOYaYA3A4OBgbtu2rfzq+tjw8DBDQ0OzXUbl2efy2ePy2ePyjYyM/Gyy287mr1/rgNd3r7I/DXg4M++bxXokSaqU0o7kI+I6YAiYFxE7gfcDBwNk5meA9cC5wHbgMeCNZdUiSVI/Ki3kM/P8CV5P4K/Len9JkvqdV0tIklRRhrwkSRVlyEuSVFGGvCRJFWXIS5JUUYa8JEkVZchLklRRhrwkSRVlyEuSVFGGvCRJFWXIS5JUUYa8JEkV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NiJ9ExKdn8guT9ExOhiP1mYh4kM5813tuHPJp4HDg9XRuQvQInfuFn0fnQOAa4MzMfCgi1gOfoDPN6S3Aqsy8JSKOAB4F3ga8Fjgb+F86c8Yf5U1KpNnh6Xqpj0TEQuCXmblk1PovAB/aM9Vrd7roI4ALgCv23IcduAM4Engz8JU98+zveT0iTgL+KTMf6R7xP2XAS7PH0/VSfzmRTlCPdhJwK/zmFrjHA1uBxcDto7bfCvwhnRvq7G0/N3Wf/wFw13QULWlyDHmpvywBfty7IiKeBQx2HwB/C/xn9+j8HjpBT0T8KXBIZt4K/DedXwSIiFpEPLd7y+fDM/OBnvfaVO6XI2k8fiYv9ZHuafkzgD1BnMA76Nzt6ik696ceAS7KzMciog5cS+duhDuA1Zl5X0T8HnAdnVP6u4G30rkr1hWZeU73vT4I3JuZV83U1yfpmQx5qc9FxBuBema+Z7ZrkTS9PF0v6SRG/UmdpGrwSF6SpIrySF6SpIoy5CVJqihDXpKkijLkJUmqKENekqSKMuQlSaqo/wNXMz4xstB9HQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 576x216 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "\n",
    "import tensorwatch as tw\n",
    "client = tw.WatcherClient()\n",
    "loss_stream = client.create_stream(expr='lambda d:(d.iter, d.loss)')\n",
    "# 可视化设置\n",
    "loss_plot = tw.Visualizer(loss_stream, vis_type='line', xtitle='Epoch', ytitle='Train Loss')\n",
    "loss_plot.show()\n",
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
